package com.cloudfun.campusshare.entity;

import com.cloudfun.campusshare.common.constant.ReplenishStatus;
import com.cloudfun.campusshare.configuration.jpa.conventer.EnumIntConventer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.*;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "replenish")
@Accessors(chain = true)
public class Replenish extends BaseEntity{

    @Id
    private String imei;

    @Column(name="laundry_detergent")
    private Integer laundryDetergent;

    @Column(name="disinfectant")
    private Integer disinfectant;

    @Column(name="replenish_status")
//    @Enumerated
    @Convert(converter = EnumIntConventer.class)
    private ReplenishStatus replenishStatus;
}
